package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 轮胎报警表
 * </p>
 *
 * @author LX
 * @since 2018-09-12
 */
@TableName("erp_tire_police")
public class ErpTirePolice extends Model<ErpTirePolice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 车牌号
     */
    private String plate;
    /**
     * 胎位
     */
    @TableField("tire_location")
    private String tireLocation;
    /**
     * 报警类别 1检测状态正常 2低压/高压/高温报警 3电池/花纹深度报警 4传感器无信号报警 5未安装传感器
     */
    @TableField("police_type")
    private Integer policeType;
    /**
     * 报警值
     */
    @TableField("police_value")
    private Double policeValue;
    /**
     * 解决值
     */
    @TableField("solve_value")
    private Double solveValue;
    /**
     * 报警时间
     */
    @TableField("police_dt")
    private String policeDt;
    /**
     * 解决时间
     */
    @TableField("solve_dt")
    private String solveDt;
    /**
     * 报警原因
     */
    private String reason;
    /**
     * 正常值
     */
    @TableField("normal_value")
    private Double normalValue;
    /**
     * 车辆id
     */
    @TableField("car_id")
    private Integer carId;
    
    private String bz;

    /**
     * 报警类型名称
     */
    private transient String policeTypeName;

    public String getPoliceTypeName() {
        return policeTypeName;
    }

    public void setPoliceTypeName(String policeTypeName) {
        this.policeTypeName = policeTypeName;
    }

    public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPlate() {
        return plate;
    }

    public void setPlate(String plate) {
        this.plate = plate;
    }

    public String getTireLocation() {
        return tireLocation;
    }

    public void setTireLocation(String tireLocation) {
        this.tireLocation = tireLocation;
    }

    public Integer getPoliceType() {
        return policeType;
    }

    public void setPoliceType(Integer policeType) {
        this.policeType = policeType;
    }

    public Double getPoliceValue() {
        return policeValue;
    }

    public void setPoliceValue(Double policeValue) {
        this.policeValue = policeValue;
    }

    public Double getSolveValue() {
        return solveValue;
    }

    public void setSolveValue(Double solveValue) {
        this.solveValue = solveValue;
    }

    public String getPoliceDt() {
        return policeDt;
    }

    public void setPoliceDt(String policeDt) {
        this.policeDt = policeDt;
    }

    public String getSolveDt() {
        return solveDt;
    }

    public void setSolveDt(String solveDt) {
        this.solveDt = solveDt;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Double getNormalValue() {
        return normalValue;
    }

    public void setNormalValue(Double normalValue) {
        this.normalValue = normalValue;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpTirePolice{" +
        ", id=" + id +
        ", plate=" + plate +
        ", tireLocation=" + tireLocation +
        ", policeType=" + policeType +
        ", policeValue=" + policeValue +
        ", solveValue=" + solveValue +
        ", policeDt=" + policeDt +
        ", solveDt=" + solveDt +
        ", reason=" + reason +
        ", normalValue=" + normalValue +
        ", carId=" + carId +
        "}";
    }
}
